﻿/*
**  ContactPoint类
*/
if (!$.Engine.Collision || typeof $.Engine.Collision === "undefined") $.Engine.Collision = {};
$.Engine.Collision.ContactPoint = function () {
  this.position = new $.Engine.Math.Vector2D();
  this.id = new $.Engine.Collision.ContactID();
};

// We use contact ids to facilitate warm starting.
Object.extend($.Engine.Collision.ContactPoint.prototype, {
  position: new $.Engine.Math.Vector2D(),
  separation: null,
  normalImpulse: null,
  tangentImpulse: null,
  id: new $.Engine.Collision.ContactID()
});
